package com.xadmin.designing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xadmin.sys.common.utils.Page;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

import com.xadmin.designing.mapper.Test01Mapper;
import com.xadmin.designing.pojo.Test01;
import com.xadmin.designing.service.Test01Service;

// //  modeName pojo mapper service

@Service
public class Test01ServiceImpl extends ServiceImpl<Test01Mapper, Test01> implements Test01Service {

    @Resource
    private Test01Mapper mapperTmp;

    @Override
    public Page<Test01> getAllByPage(Page<Test01> page) {
        List<Test01> list = mapperTmp.getAllByPage(page);
        page.setList(list);
        int tatalCount = mapperTmp.getCountByPage(page);
        page.setTotalCount(tatalCount);
        return page;
    }
}
